" CocStatuslinehi.
highlight link StatusScrollBar DiagnosticFloatingInfo
highlight link CoclineColor_b Folded
" coc.nvim
" highlight link CocTreeSelected IncSearch
" highlight link CocSemTypeVariable NONE
highlight link CocSemTypeVariable @variable
highlight link CocSemTypeClass @lsp.type.class
highlight link CocListMode StatusLine
highlight link CocListPath StatusLine
" 空格拖尾
" highlight link ExtraWhitespace DiffAdd
" syn match ExtraWhitespace    '\s\+$' display
 " match ExtraWhitespace /\s\+$/

try
    if g:colors_name == 'sonokai'
        source $HOME/.config/nvim/highlight/themeHighlight/sonokai.vim
    elseif g:colors_name == 'catppuccin-mocha'
        source $HOME/.config/nvim/highlight/themeHighlight/catppuccin.vim
    elseif g:colors_name == 'catppuccin-latte'
        source $HOME/.config/nvim/highlight/themeHighlight/catppuccinLatte.vim
    elseif g:colors_name == "everforest"
        source $HOME/.config/nvim/highlight/themeHighlight/everforest.vim
    elseif g:colors_name == "vscode"
        source $HOME/.config/nvim/highlight/themeHighlight/vscode.vim
    elseif g:colors_name == "doom-one"
        source $HOME/.config/nvim/highlight/themeHighlight/doom.vim
    elseif g:colors_name == "ofirkai"
        source $HOME/.config/nvim/highlight/themeHighlight/ofirkai.vim
    endif
catch
endtry

highlight link NoiceCmdlinePopup  Statusline

" highlight link CocSearch  CocMenuSel


" set pumheight=10
" if g:colors_name != "deus"
"     set pumheight=8
" endif
if g:coc_flaot_opacity == 1
    " set pumheight=10
    highlight link CocPumSearch Identifier
    if &background == "dark"
        highlight link CocFloating Comment
    else
        highlight link CocFloating  Normal
    endif
endif

" Rainbow
" command! RainbowToggle call rainbow_main#toggle()
" command! RainbowToggleOn call rainbow_main#load()
" command! RainbowToggleOff call rainbow_main#clear()
" augroup _Rainbow
"     autocmd!
"     autocmd! syntax * call rainbow_main#load()
"     autocmd! colorscheme * call rainbow_main#load()
" augroup end


" coc float {{
" highlight link CocFloating  Normal
" highlight CocSymbolKeyword          guibg=#cba6f8 guifg=#181826
" highlight link CocSymbolStruct      CocSymbolKeyword
" highlight link CocSymbolModule      CocSymbolKeyword
" highlight link CocSymbolFile        CocSymbolKeyword
" highlight CocSymbolValue            guibg=#89b4fb guifg=#181826
" highlight link CocSymbolFunction    CocSymbolValue
" highlight link CocSymbolMethod      CocSymbolValue
" highlight link CocSymbolFolder      CocSymbolValue
" highlight link CocSymbolSnippet     CocSymbolValue
" highlight link CocSymbolUnit        CocSymbolValue
" highlight link CocSymbolDefault     CocSymbolValue
" highlight CocSymbolConstant         guibg=#fab388 guifg=#181826
" highlight link CocSymbolEvent       CocSymbolConstant
" highlight link CocSymbolColor       CocSymbolConstant
" highlight CocSymbolClass            guibg=#74c7ed guifg=#181826
" highlight link CocSymbolConstructor CocSymbolClass
" highlight CocSymbolInterface        guibg=#f9e2b0 guifg=#181826
" highlight link CocSymbolEnum        CocSymbolInterface
" highlight CocSymbolEnumMember       guibg=#b4beff guifg=#181826
" highlight link CocSymbolProperty    CocSymbolEnumMember
" highlight link CocSymbolField       CocSymbolEnumMember
" highlight link CocSymbolReference   CocSymbolEnumMember
" highlight link CocSymbolNamespace   CocSymbolEnumMember
" highlight CocSymbolOperator         guibg=#89dcec guifg=#181826
" highlight CocSymbolTypeParameter    guibg=#eba0ad guifg=#181826
" highlight CocSymbolText             guibg=#cdd6f5 guifg=#181826
" highlight CocSymbolVariable         guibg=#f38ba9 guifg=#181826 
" highlight link CocSymbolPackage     CocSymbolKeyword
" highlight CocSymbolKey              guibg=#f2cdce guifg=#181826 
" highlight link CocSymbolNull        CocSymbolKey
" highlight link CocSymbolObject      CocSymbolKey
" highlight link CocSymbolArray       CocSymbolConstant
" highlight link CocSymbolNumber      CocSymbolConstant
" highlight link CocSymbolBoolean     CocSymbolConstant
" highlight CocSymbolString           guibg=#a6e3a2 guifg=#181826
" highlight link CocSymbolEllipsis    CocSymbolText
" }}
